package tnviet.proj.jna.analyzer;
import jpcap.packet.*;
import tnviet.proj.jna.Program;
import tnviet.proj.jna.utilities.ResourceManager;

public class SSHAnalyzer extends JNPacketAnalyzer
{
    private static ResourceManager resourceManager = new ResourceManager(JNPacketAnalyzer.class, Program.locale);
	public SSHAnalyzer(){
		layer=APPLICATION_LAYER;
	}
	
	public boolean isAnalyzable(Packet p){
		if(p instanceof TCPPacket &&
		   (((TCPPacket)p).src_port==22 || ((TCPPacket)p).dst_port==22))
			return true;
		else return false;
	}
	
	public String getProtocolName(){
		return resourceManager.getString("ssh");
	}
	
	public String[] getValueNames(){return null;}
	
	public void analyze(Packet p){
            if(!isAnalyzable(p)) return;
        }
	
	public Object getValue(String s){ return null; }
	public Object getValueAt(int i){ return null; }
	public Object[] getValues(){ return null; }

    @Override
    public String getValueNameAt(int index) {
        return null;
    }
}
